import Vue from 'vue'
import VueRouter from 'vue-router'

import Client from '@/view/Client.vue'
import FindMusic from '@/view/FindMusic.vue'
import Focus from '@/view/Focus.vue'
import Musician from '@/view/Musician.vue'
import MyMusic from '@/view/MyMusic.vue'
import Store from '@/view/Store.vue'

import NotFound from '../view/NotFound.vue'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/',
      redirect: '/findMusic',
    },
    {
      path: '/client',
      component: Client,
    },
    {
      path: '/findMusic',
      component: FindMusic,
    },
    {
      path: '/focus',
      component: Focus,
    },
    {
      path: '/musician',
      component: Musician,
    },
    {
      path: '/myMusic',
      component: MyMusic,
    },
    {
      path: '/store',
      component: Store,
    },
    {
      path: '*',
      component: NotFound,
    },
  ],
})
export default router
